package example.service;

import example.pojo.User;

import java.util.List;
import java.util.Map;


public interface UserService {

    User insert(User user) throws Exception;
    User update(User user)  throws Exception;
    boolean selectByName(User user) throws Exception;
    User getUserByName(User user) throws Exception;
    User getUserById(long id) ;
    Map<String,Object> login(User user) throws Exception;

//    Map<String,Object> refleshToP(User user)throws Exception;

    boolean insertUser(User user) throws Exception;

    User getPwdByPhoneOrMail(User user) throws Exception;

    boolean setPwdByMail(User user) throws Exception;
    void deleteUserById(User user) throws Exception;

    List<User> getUserlistByName(User pojo)throws Exception;
    List<User> getUserlistAll()throws Exception;
    long selectCount();

}
